<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<script>
selection_test(
  [
    '<style>li:nth-child(2){display:table-column-group;}</style>',
    '<div contenteditable>',
    '^<li></li>',
    '<canvas></canvas>',
    '|</div>'
  ],
  'FormatBlock pre',
  [
    '<style>li:nth-child(2){display:table-column-group;}</style>',
    '<div contenteditable>',
    '<pre></pre>',
    '<li></li>',
    '<canvas></canvas>',
    '</div>'
  ],
  'Should not crash');
</script>